# Allow hal_camera_default to read to sysfs
r_dir_file(hal_camera_default, vendor_sysfs_kgsl)
r_dir_file(hal_camera_default, vendor_sysfs_battery_supply)

# Allow hal_camera_default to read to /mnt/vendor/persist
r_dir_file(hal_camera_default, camera_persist_file)
r_dir_file(hal_camera_default, mnt_vendor_file)
r_dir_file(hal_camera_default, vendor_persist_sensors_file)

set_prop(hal_camera_default, vendor_camera_prop)

add_hwservice(hal_camera_default, hal_xiaomi_camera_hwservice)

allow hal_camera_default public_adsprpcd_file:file r_file_perms;
allow hal_camera_default sysfs_thermal:file rw_file_perms;
allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms;
allow hal_camera_default serialno_prop:file { getattr open read };
allow hal_camera_default system_data_file:dir { search };
binder_call(hal_camera_default, platform_app)

allow hal_camera_default cgroup:file r_file_perms;
allow hal_camera_default sys_thermal_flash_state: file rw_file_perms;
